package com.ruoyi.web.controller.demo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.controller.demo.mapper.TestInlineFormMapper;
import com.ruoyi.web.controller.demo.domain.TestInlineForm;
import com.ruoyi.web.controller.demo.service.ITestInlineFormService;
import com.ruoyi.common.core.text.Convert;

/**
 * 行内表单Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-08
 */
@Service
public class TestInlineFormServiceImpl implements ITestInlineFormService 
{
    @Autowired
    private TestInlineFormMapper testInlineFormMapper;

    /**
     * 查询行内表单
     * 
     * @param id 行内表单主键
     * @return 行内表单
     */
    @Override
    public TestInlineForm selectTestInlineFormById(Long id)
    {
        return testInlineFormMapper.selectTestInlineFormById(id);
    }

    /**
     * 查询行内表单列表
     * 
     * @param testInlineForm 行内表单
     * @return 行内表单
     */
    @Override
    public List<TestInlineForm> selectTestInlineFormList(TestInlineForm testInlineForm)
    {
        return testInlineFormMapper.selectTestInlineFormList(testInlineForm);
    }

    /**
     * 新增行内表单
     * 
     * @param testInlineForm 行内表单
     * @return 结果
     */
    @Override
    public int insertTestInlineForm(TestInlineForm testInlineForm)
    {
        return testInlineFormMapper.insertTestInlineForm(testInlineForm);
    }

    /**
     * 修改行内表单
     * 
     * @param testInlineForm 行内表单
     * @return 结果
     */
    @Override
    public int updateTestInlineForm(TestInlineForm testInlineForm)
    {
        return testInlineFormMapper.updateTestInlineForm(testInlineForm);
    }

    /**
     * 批量删除行内表单
     * 
     * @param ids 需要删除的行内表单主键
     * @return 结果
     */
    @Override
    public int deleteTestInlineFormByIds(String ids)
    {
        return testInlineFormMapper.deleteTestInlineFormByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除行内表单信息
     * 
     * @param id 行内表单主键
     * @return 结果
     */
    @Override
    public int deleteTestInlineFormById(Long id)
    {
        return testInlineFormMapper.deleteTestInlineFormById(id);
    }
}
